<%@ page import="control.ComputerInfo" %>
<%@ page import="java.util.List" %>
<%@ page import="com.opensymphony.xwork2.util.ValueStack" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
  ValueStack vs = (ValueStack)request.getAttribute("struts.valueStack");
  List<ComputerInfo> computers = (List<ComputerInfo>) vs.findValue("list");

  String status = "";
  for(ComputerInfo computer : computers) status += (status.length() == 0 ? "" : ",") + computer.getState();
  out.println(status);
%>